package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BsEntourageMapper;
import com.ruoyi.system.domain.BsEntourage;
import com.ruoyi.system.service.IBsEntourageService;

/**
 * 玩家副将Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-14
 */
@Service
public class BsEntourageServiceImpl implements IBsEntourageService 
{
    @Autowired
    private BsEntourageMapper bsEntourageMapper;

    /**
     * 查询玩家副将
     * 
     * @param id 玩家副将主键
     * @return 玩家副将
     */
    @Override
    public BsEntourage selectBsEntourageById(Long id)
    {
        return bsEntourageMapper.selectBsEntourageById(id);
    }

    /**
     * 查询玩家副将列表
     * 
     * @param bsEntourage 玩家副将
     * @return 玩家副将
     */
    @Override
    public List<BsEntourage> selectBsEntourageList(BsEntourage bsEntourage)
    {
        return bsEntourageMapper.selectBsEntourageList(bsEntourage);
    }

    /**
     * 新增玩家副将
     * 
     * @param bsEntourage 玩家副将
     * @return 结果
     */
    @Override
    public int insertBsEntourage(BsEntourage bsEntourage)
    {
        return bsEntourageMapper.insertBsEntourage(bsEntourage);
    }

    /**
     * 修改玩家副将
     * 
     * @param bsEntourage 玩家副将
     * @return 结果
     */
    @Override
    public int updateBsEntourage(BsEntourage bsEntourage)
    {
        return bsEntourageMapper.updateBsEntourage(bsEntourage);
    }

    /**
     * 批量删除玩家副将
     * 
     * @param ids 需要删除的玩家副将主键
     * @return 结果
     */
    @Override
    public int deleteBsEntourageByIds(Long[] ids)
    {
        return bsEntourageMapper.deleteBsEntourageByIds(ids);
    }

    /**
     * 删除玩家副将信息
     * 
     * @param id 玩家副将主键
     * @return 结果
     */
    @Override
    public int deleteBsEntourageById(Long id)
    {
        return bsEntourageMapper.deleteBsEntourageById(id);
    }
}
